package com.awei.study.design.action.common;

import java.util.HashMap;

/**
 * @Author liweilong
 * @Date 2024/8/14 22:26
 */
public class Order {
    //桌子号码
    private Integer tableNum;
    private HashMap<String,Integer> orders;

    public Order() {
        this.orders = new HashMap<>();
    }

    public Integer getTableNum() {
        return tableNum;
    }

    public void setTableNum(Integer tableNum) {
        this.tableNum = tableNum;
    }

    public HashMap<String, Integer> getOrders() {
        return orders;
    }

    public void setOrders(HashMap<String, Integer> orders) {
        this.orders = orders;
    }

    public void addOrder(int num,String name) {
        orders.put(name,num);
    }
}
